package cn.wolfcode.trip.base.domain;

import com.alibaba.druid.support.json.JSONUtils;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Setter
@Getter
/**
 * 景点
 */
@JsonIgnoreProperties("handler")//转json数据时不要序列化handler
public class Scenic extends BaseDomain{

    public static final int STATE_MORMAL = 0; // 普通
    public static final int STATE_HOT = 1; // 热门
    //public static final int STATE_RECOMMEND = 2; // 滚动推荐

    //景点名称
    private String name;

    //地区
    private Region place;

    //封面
    private String coverUrl;

    //状态
    private Integer state;

    //满意度
    private String satisfaction;

    //地址
    private String site;

    //最低价格
    private Ticket ticket;

    //门票
    private List<Ticket> tickets = new ArrayList<Ticket>();


    /*public String getJson() {
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("id", id);
        map.put("name", name);
        map.put("placeId", place.getId());
        map.put("coverUrl", coverUrl);
        map.put("state", state);
        map.put("site", site);
        return JSONUtils.toJSONString(map);
    }*/
}